package com.meshnetics.gb.type.impl.zcl;

import com.meshnetics.gb.type.DataTypeID;

/**
 * @author Pavlov Dmitry dpavlov@meshnetics.com
 */
public class TypeTime extends FixedBytesDataType {

    public static TypeTime UTC_TIME = new TypeTime(new String[]{"utctime"}, new DataTypeID((byte) 0xE2, "time", "UTCTime"), 4);

    private TypeTime(String[] aliases, DataTypeID dataTypeId, int byteSize) {
        super(aliases, dataTypeId, byteSize);
    }


    // no byte array cloning needed
    protected FixedBytesDataValue createValue(byte[] bytes) {
        return new Time(this, bytes);
    }
}
